package com.team.mpc;

import com.alibaba.cloud.seata.feign.SeataFeignClientAutoConfiguration;
import io.seata.spring.annotation.datasource.EnableAutoDataSourceProxy;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@Slf4j
@SpringBootApplication(exclude = {SeataFeignClientAutoConfiguration.class}) //解决sleuth,seata,sentinel bean冲突问题 禁用feign的自动配置，采用拦截器代替
@EnableDiscoveryClient
@MapperScan("com.team.mpc.mapper")
@EnableAutoDataSourceProxy
public class MPCApplication {

    public static void main(String[] args) {
        SpringApplication.run(MPCApplication.class);
        log.info("消息推送中心MPC启动");
    }
}
